#ifndef QLSSPECIFICATION_H
#define QLSSPECIFICATION_H

#include <QString>
#include <QList>

#include "qls_db_manager_global.h"

class QLS_DB_MANAGER_EXPORT QLsSpecification
{
public:
    QLsSpecification();

    static QString isNull(QString key);
    static QString isNotNull(QString key);

    static QString equal(QString key, QString value);
    static QString notEqual(QString key, QString value);
    static QString like(QString key, QString value);

    static QString Or(QString a, QString b);
    static QString Or(QList<QString> QList);

    static QString And(QString a, QString b);
    static QString And(QList<QString> QList);

    static QString tranString(const QString &value);

    QString getSqlWhere() const;
    void setSqlWhere(const QString &value);

private:
    QString sqlWhere;
};

#endif // QLSSPECIFICATION_H
